<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of IteratorLoader
 *
 * @author pahhan
 */
class Model_Loader_IteratorLoader extends Model_DataLoader
{
    public function getNextId($id)
    {
        return $id + 1;
    }

    public function __construct(Model_ParseInfo $parse_info)
    {
        parent::__construct($parse_info);
        $this->addDefiner(new Model_Definer_IteratorDefiner($this));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>2)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>3)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>4)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>5)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>6)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>7)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>8)));
        $this->addDefiner(new Model_Definer_IteratorDefiner($this, array('step'=>9)));
    }

}

